Maximize (\code{'max'}) or minimize (\code{'min'}).
